package BankAdvance;

import java.net.ServerSocket;

public class BankTest {

    public static void main(String[] args) {
        Bank bank = new Bank();
        bank.addCustomer("Jane","Smith");

        bank.getCustomer(0).setAccount(new Account(2000));

        bank.getCustomer(0).getAccount().withdraw(500);
        bank.getCustomer(0).getAccount().getBalance();
        System.out.println("客户：" + bank.getCustomer(0).getFirstName() + "的账户余额是：" + bank.getCustomer(0).getAccount().getBalance());
        System.out.println(bank.getNumberOfCustomers());
    }

}
